package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.DailyContent;
import cn.wolfcode.trip.base.domain.DailyDetail;
import cn.wolfcode.trip.base.query.DailyDetailQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDailyDetailService {
    PageInfo<DailyDetail> query(QueryObject qo);

    void saveOrUpdate(DailyDetail entity);

    DailyContent getContent(Long id);

    /**
     * 根据id查询日报文章
     * @param id
     * @return
     */
    DailyDetail get(Long id);

    /**
     * 查询状态的头条信息
     * @param state
     * @return
     */
    DailyDetail listCommends(Integer state);

    /**
     * 查询日报推荐状态
     * @param state
     * @return
     */
    List<DailyDetail> getCommend(Integer state);

    /**
     * 查询日报更多状态
     * @param state
     * @return
     */
    List<DailyDetail> getelse(Integer state);


}
